package com.mxpio.erp.common.equipment.entity;

import javax.persistence.*;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 设备分类中间对象 MB_ERP_EQUIPMENT_EQP_REL_CATEGORY
 *
 * @author Cheng
 * @date 2023-07-10
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_EQP_REL_CATEGORY")
@Schema(description="设备分类中间表")
public class EquipmentEqpRelCategory extends BaseEntity {

    private static final long serialVersionUID=1L;

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "id")
    private String id;

    @Column(name = "EQP_ID_")
    @Schema(description = "设备ID")
    private String eqpId;

    @Column(name = "CATEGORY_ID_")
    @Schema(description = "分类ID")
    @Dict(dicCode = "id", dicEntity = EquipmentCategory.class, dicText = "name")
    private String categoryId;


}